package com.haha.Mappers;

import com.haha.Beans.Media;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MediaMapper {
    List<Media> getAllMedia();
    Media selectById(Integer id);
    Integer getAllMediaCount();
    Integer insertMedia(Media record);
    Integer deleteMedia(@Param("videoId") String id);
    Integer updateMedia(@Param("videoId") String id,@Param("record") Media record);
}
